package com.java.jiuyang.cloud.cleancode.errorhandle;

/**
 * @ClassName: ErrorDTO
 * @Description:
 * @Version: v1.0.0
 * @Author: Fu Hao
 * @Date: 2019/11/12 0012 上午 9:22
 * Modification History:
 * Date           Author      Version     Description
 * -------------------------------------------------------------
 * 2019/11/12 0012        Fu Hao      v1.0.0         创建
 */
/*统一接口返回body体的内容，方便接口调用者处理，
这里定义了两个字段error_code、error_desc（对应了异常枚举值中的错误码和错误信息）*/
public class ErrorDTO {
    private int error_code;
    private String error_desc;

    public ErrorDTO(int error_code, String error_desc) {
        super();
        this.error_code = error_code;
        this.error_desc = error_desc;
    }
    public int getError_code() {
        return error_code;
    }
    public void setError_code(int error_code) {
        this.error_code = error_code;
    }
    public String getError_desc() {
        return error_desc;
    }
    public void setError_desc(String error_desc) {
        this.error_desc = error_desc;
    }
}
